package com.kingyun.gpsinspection.purificationservice.facade.service.jsm.permission;

import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.*;

import java.util.List;
import java.util.Map;

/**
 * Created by huangxueqian on 2017/1/6/006.
 */
public interface JsmRolesMenuService {

    /**
     * @param accountRoles 根据人员角色获取菜单
     * @param subSystem
     * @return
     * @throws Exception
     */
    public List<RoleMenu> getMenuByRole(List<AccountRole> accountRoles, String subSystem) throws Exception;


    /**
     * 根据需要进行查询权限菜单权限 ；
     *
     * @param requireMap
     * @return
     * @throws Exception
     */
    public List<Menu> getMenusByRequire(Map requireMap) throws Exception;

    /**
     * @param rolesId 角色Id
     * @param list    菜单List
     * @return
     * @throws Exception
     */
    public Integer rolesMenuAdd(String rolesId, List<String> list, Employee employee) throws Exception;

    /**
     * @param rolesId 角色Id
     * @param list    菜单List
     * @return
     * @throws Exception
     */
    public Integer rolesMenuDel(String rolesId, List<String> list) throws Exception;


    /**
     * 根据用户查询
     */
    public List<Ztree> isAllotMenuZtree(String rolesId, String menuId) throws  Exception ;

}
